package model.contrainte;

public class CreateurContrainteSalaire implements CreateurContrainte{

	public Contrainte creerContrainte(Object[] contenu) {
		double borneinf = Double.parseDouble((String) contenu[0]);
		double bornesup = Double.parseDouble((String) contenu[1]);
		return new ContrainteSalaire(borneinf, bornesup);
	}

	public TypeContrainte getTypeContrainte() {
		return TypeContrainte.SALAIRE;
	}

}
